<template>
  <div class="update-birthday">
    <van-datetime-picker
      v-model="currentDate"
      type="date"
      title="选择年月日"
      :min-date="minDate"
      :max-date="maxDate"
      @confirm="onConfirm"
      @cancel="$emit('close')"
      @change="onChange"
    />
  </div>
</template>

<script>
// 导入修改个人资料请求接口
// import { setUserModifyInfo } from '@/api/users'
export default {
  name: 'UpdateBirthday',
  props: {
    value: {
      type: [String, Object],
      required: true
    }
  },
  data () {
    return {
      minDate: new Date(1960, 0, 1),
      maxDate: new Date(),
      currentDate: new Date(this.value)
    }
  },
  methods: {
    onConfirm () {},
    onChange () {}
  }
}
</script>

<style scoped lang="less">

</style>
